import { Container, Type, Answer } from "./styled";

interface titleType {
  index?: number;
  title?: string;
  type: string;
}

export const Title = ({ index, title, type }: titleType) => {
  return (
    <Container>
      <Type>{type}</Type>
      <Answer>{index + '. '+ title}</Answer>
    </Container>
  );
};

export default Title;
